package com.kfm.spring.service.impl;

import com.kfm.spring.domain.SysMenu;
import com.kfm.spring.mapper.SysMenuMapper;
import com.kfm.spring.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysMenuServiceImpl implements SysMenuService {

    @Autowired
    private SysMenuMapper mapper;

    @Override
    public List<SysMenu> findMenuByRole(Integer roleId) {
        return mapper.selectByRoleId(roleId);
    }
}
